package com.gxa.cddx.www.spting_ai.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author liye
 * @date 2025/10/16 11:26
 * @description:
 */
@TableName
public class Student {
    //当主键名和属性名不一致 就需要填写 @TableId(value = "stu_id")
    @TableId(value = "stu_id")
    private String id;
    @TableField( value = "stu_name")//当字段名和属性名不一致 就需要填写 @TableField("stu_name")
    private String name;
    private String stuSex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy年MM月dd")
    private Date stuBirth;
    private String stuPhone;
    private String stuIdcared;
    private String stuAddr;
    private Integer clazzId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStuSex() {
        return stuSex;
    }

    public void setStuSex(String stuSex) {
        this.stuSex = stuSex;
    }

    public Date getStuBirth() {
        return stuBirth;
    }

    public void setStuBirth(Date stuBirth) {
        this.stuBirth = stuBirth;
    }

    public String getStuPhone() {
        return stuPhone;
    }

    public void setStuPhone(String stuPhone) {
        this.stuPhone = stuPhone;
    }

    public String getStuIdcared() {
        return stuIdcared;
    }

    public void setStuIdcared(String stuIdcared) {
        this.stuIdcared = stuIdcared;
    }

    public String getStuAddr() {
        return stuAddr;
    }

    public void setStuAddr(String stuAddr) {
        this.stuAddr = stuAddr;
    }

    public Integer getClazzId() {
        return clazzId;
    }

    public void setClazzId(Integer clazzId) {
        this.clazzId = clazzId;
    }
}
